package com.bwie.mq;

import com.bwie.pojo.po.RegistrationPo;
import com.bwie.pojo.vo.RegistrationVo;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @
 * @descriptions: MessageProduce
 * @author: LiYang
 * @date: 2025/3/17 2:31
 * @version: 1.0
 */
@Component
public class MessageProduce {
    @Autowired
    private AmqpTemplate amqpTemplate;
    public void sendMes(RegistrationPo registrationPo){

        amqpTemplate.convertAndSend("sendMsg",registrationPo);
    }
}
